package com.net.xpay.common.manager.admin.rbac;

import com.net.xpay.common.domain.admin.rbac.AdminUser;
import com.net.xpay.common.model.admin.rbac.search.AdminUserSearchModel;
import com.net.common.manager.DomainManager;

import java.util.List;


public interface AdminUserManager extends DomainManager<Long, AdminUser> {
    AdminUser findByMobile(String mobile);

    List<AdminUser> search(AdminUserSearchModel searchModel);

    long searchCount(AdminUserSearchModel searchModel);

    /**
     * 通过用户id查找用户
     * @param adminUserId : 用户id
     * @return
     */
    AdminUser findById(Long adminUserId);
}
